package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.domain.JxSubject;
import com.ruoyi.system.mapper.JxSubjectMapper;
import com.ruoyi.system.service.IJxSubjectService;

/**
 * 科目Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
@Service
public class JxSubjectServiceImpl implements IJxSubjectService 
{
    @Autowired
    private JxSubjectMapper jxSubjectMapper;

    /**
     * 查询科目列表
     * 
     * @param jxSubject 科目
     * @return 科目
     */
    @Override
    public List<JxSubject> selectJxSubjectList(JxSubject jxSubject)
    {
        return jxSubjectMapper.selectJxSubjectList(jxSubject);
    }

    /**
     * 新增科目
     * 
     * @param jxSubject 科目
     * @return 结果
     */
    @Override
    public int insertJxSubject(JxSubject jxSubject)
    {
        return jxSubjectMapper.insertJxSubject(jxSubject);
    }

    /**
     * 修改科目
     * 
     * @param jxSubject 科目
     * @return 结果
     */
    @Override
    public int updateJxSubject(JxSubject jxSubject)
    {
        return jxSubjectMapper.updateJxSubject(jxSubject);
    }

    /**
     * 批量删除科目
     * 
     * @param subjectIds 需要删除的科目主键
     * @return 结果
     */
    @Override
    public int deleteJxSubjectBySubjectIds(Long[] subjectIds)
    {
        return jxSubjectMapper.deleteJxSubjectBySubjectIds(subjectIds);
    }

    /**
     * 删除科目信息
     * 
     * @param subjectId 科目主键
     * @return 结果
     */
    @Override
    public int deleteJxSubjectBySubjectId(Long subjectId)
    {
        return jxSubjectMapper.deleteJxSubjectBySubjectId(subjectId);
    }

    /**
     * 根据科目ID查询科目信息
     * 
     * @param subjectId 科目主键
     * @return 科目
     */
    @Override
    public JxSubject selectJxSubjectBySubjectId(Long subjectId)
    {
        return jxSubjectMapper.selectJxSubjectBySubjectId(subjectId);
    }
}


